home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / apps / 93 / applic / sdbhlp.c < prev    next >
C/C++ Source or Header  |  1987-01-15  |  1KB  |  37 lines

  1. /* sdb - sdb help function */
  2.  
  3. #include "sdbio.h"
  4.  
  5. /* help - provide some online help */
  6. int help()
  7. {
  8.     fputs(
  9. "\
  10. create <rname> (<adefs>) <size> <esize>    - create a new relation\n\
  11. insert <rname>                - insert tuples into a relation\n\
  12. delete <rse> ;                - delete tuples from relations\n\
  13. update <anames> from <rse> ;        - update tuples within a relation\n\
  14. select <anames> from <rse> [<i>] ;    - select and create a new relation\n\
  15. print [<u>] <anames> from <rse> [<i>] ;    - print tuples\n\
  16. sort <rname> by <snames> ;        - sort a relation file\n\
  17. import <fname> into <rname>        - import tuples from a file\n\
  18. export <rname> [<i>] ;            - export tuples to a file\n\
  19. extract <rname> [<i>] ;            - extract definition to a file\n\
  20. compress <rname>            - compress a relation file\n\
  21. define <mname>                - define a macro\n\
  22. exit                    - exit SDB\n\
  23. <u>        ::=    using <fname>\n\
  24. <i>        ::=    into <fname>\n\
  25. <adefs>        ::=    <a list of attribute definitions>\n\
  26. <rse>        ::=    <rnames> [where <boolean-expression>]\n\
  27. <rname>        ::=    <a relation name>\n\
  28. <rnames>    ::=    <a comma separated list of <rname>s>\n\
  29. <aname>        ::=    [<rname> .] <an attribute name>\n\
  30. <anames>    ::=    * | <a comma separated list of <aname>s>\n\
  31. <sname>        ::=    <aname> { ascending | descending }\n\
  32. <snames>    ::=    <a comma separated list of <sname>s>\n\
  33. ",
  34.     stdout);
  35.     return (TRUE);
  36. }
  37.